/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author Blade
 * @since 2020-05-17
 */
@Data
@TableName("blade_t_work_order")
@ApiModel(value = "WorkOrder对象", description = "WorkOrder对象")
public class WorkOrder implements Serializable {

	private static final long serialVersionUID = 1L;
	@TableId(value = "work_order_id", type = IdType.INPUT)
	@ApiModelProperty("工单编号")
	private Long workOrderId;
	@ApiModelProperty("标题")
	private String title;
	@ApiModelProperty("描述")
	private String orderDescribe;
	@ApiModelProperty("故障等级 1:信息 2:警告 3:一般严重 4:严重 5:灾难")
	private Integer orderType;
	@ApiModelProperty("当前责任人、经办人id")
	private Long currentUserId;
	@ApiModelProperty("工单状态 当前工单状态 1:待处理 2:处理中 3:已处理  4:已关闭" )
	private Integer currentOrderState;
	@ApiModelProperty("创建时间")
	private LocalDateTime createTime;
	@ApiModelProperty("更新时间")
	private LocalDateTime updateTime;
	@ApiModelProperty("原告警id")
	private Long alertId;
	@ApiModelProperty("主机名称")
	private String hostName;
}
